Many fixes and cleanups for lomount:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 2 Mar 2006 20:35:17 +0000 (21:35 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 2 Mar 2006 20:35:17 +0000 (21:35 +0100)
commita78479d02820660e42757f5d47d3eac8001d753a
tree8dc7bc08964c3b6f1ddfae338e237849809dadc4
parent7797b38e69fe2da3fca0414161651ab8bfb0952f
Many fixes and cleanups for lomount:
- Fixed several overflows, off-by-one, and uninitialized variables.
- Added well-defined exit codes.
- Proper handling of system()'s return value.
- Errors parsing partition table cause it to stop now.
- etcetera...

Tested on 32 and 64 bit, with valgrind, with physical disks and disk
images.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
tools/misc/lomount/lomount.c